<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <title>Home · Dorm</title>

    <!-- Bootstrap core CSS -->
    <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <style>
      .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
      }

      @media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
      }
    </style>   
    <!-- Custom styles for this template -->
    <!-- <link href="#" rel="stylesheet"> -->
  </head>


  <body>
    
    <header>
      <%- include('./navbar.html'); %>
    </header>

    <main>
      <% if (logged) { %>
        <div class="px-4 py-5 my-5 text-center">
          <h1 class="display-5 fw-bold">Welcome</h1>
          <div class="col-lg-6 mx-auto">
            <p class="lead mb-4">Name：<%=name%></p>
            <p class="lead mb-4">StudentID：<%=studentID%></p>
            <p class="lead mb-4">Gender：<%=gender%></p>
          </div>
        </div>
        
      <%} else { %>
        <div class="px-4 py-5 my-5 text-center">
          <h1 class="display-5 fw-bold">Welcome</h1>
          <div class="col-lg-6 mx-auto">
            <p class="lead mb-4">How are you? Fine, thank you. And you? I'm fine too.</p>
            <div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
              <a class="btn btn-lg btn-primary btn-lg px-4 gap-3" href="/signup">Sign up today</a>
              <a class="btn btn-outline-secondary btn-lg px-4" href="/signin">Sign In</a>
            </div>
          </div>
        </div>
      <% } %>

    
      <div class="b-example-divider"></div>
      
      <!-- FOOTER -->
    </main>

    <script src="/bootstrap/js/bootstrap.bundle.min.js"></script>      
  </body>
</html>
